package com.bauer.java.activitidrools.drools;

import org.apache.zookeeper.CreateMode;
import org.apache.zookeeper.ZooDefs.Ids;
import org.apache.zookeeper.ZooKeeper;

/**
 * @Author ：rui.wei
 * @Date ：Created in 16:24 2019/1/15
 * @Description：
 */
public class DyDroolsContainer {

    public static void main(String[] args) throws Exception {
        ZooKeeper zooKeeper = new ZooKeeper("114.116.156.143",2181,null);
        String path = zooKeeper.create("/drools","helloe".getBytes(),Ids.OPEN_ACL_UNSAFE,CreateMode.PERSISTENT);
        System.out.println(path);
    }


    public void addDrools(String name ,String content,String version){

    }

    public void deleteDrools(String name){

    }

    public void updateDrools(String name ,String content,String version){

    }

    public void publishDrools(){

    }

}
